package BookStore.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.GroupLayout.Alignment;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class A_Frame extends JFrame {
    private JPanel contentPane;
    private JTextField textField;
    private JComboBox comboBox;

    public void Aframe() {
        EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                try {
                    A_Frame frame = new A_Frame();
                    frame.setVisible(true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * Create the frame.
     */
    public A_Frame() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setBounds(100, 100, 450, 300);
        contentPane = new JPanel();
        contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
        contentPane.setLayout(new BorderLayout(0, 0));
        setContentPane(contentPane);

        JPanel panel = new JPanel();
        contentPane.add(panel, BorderLayout.CENTER);

        JButton btnNewButton = new JButton("会员权限管理");

        JButton btnNewButton_1 = new JButton("修改密码");

        JButton btnNewButton_2 = new JButton("书籍信息管理");

        JLabel lblNewLabel = new JLabel("系统管理");
        lblNewLabel.setFont(new Font("宋体", Font.PLAIN, 25));
        lblNewLabel.setForeground(Color.RED);
        GroupLayout gl_panel = new GroupLayout(panel);
        gl_panel.setHorizontalGroup(
                gl_panel.createParallelGroup(Alignment.LEADING)
                        .addGroup(gl_panel.createSequentialGroup()
                                .addGap(29)
                                .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
                                        .addComponent(btnNewButton)
                                        .addComponent(btnNewButton_2)
                                        .addComponent(btnNewButton_1))
                                .addContainerGap(135, Short.MAX_VALUE))
                        .addGroup(Alignment.TRAILING, gl_panel.createSequentialGroup()
                                .addContainerGap(147, Short.MAX_VALUE)
                                .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE)
                                .addGap(102))
        );
        gl_panel.setVerticalGroup(
                gl_panel.createParallelGroup(Alignment.LEADING)
                        .addGroup(gl_panel.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
                                .addGap(28)
                                .addComponent(btnNewButton)
                                .addGap(18)
                                .addComponent(btnNewButton_2)
                                .addGap(18)
                                .addComponent(btnNewButton_1)
                                .addContainerGap(81, Short.MAX_VALUE))
        );
        panel.setLayout(gl_panel);
    }
}
